<template>
    <div id="homg-entrance-container">
        <router-link v-for="(item, index) in srcs" :key="index" :to="item.path">
            <div class="home-entrance-img-box">
                <img :src="item.src" class="home-entrance-img" alt="">
                <div class="home-entrance-context">
                    {{item.context}}
                </div>
            </div>
        </router-link>
    </div>
</template>

<script>
import local_vuex from "@home/js/vuex";

export default {
    data() {
        return {
            // 链接图片及路径列表
            srcs: []
        }
    },
    mounted() {
        this.srcs = local_vuex.state.srcs;
    }
}
</script>

<style lang="scss">
@import "@home/scss/entrance.scss";
</style>